Skip to content

Set default auto field#74

Open
sebastianhaas wants to merge 1 commit intoknownbug06:mainfrom
sebastianhaas:fix_auto_field_migration
Open

Set default auto field#74
sebastianhaas wants to merge 1 commit intoknownbug06:mainfrom
sebastianhaas:fix_auto_field_migration

Conversation

@sebastianhaas
Copy link
Collaborator

In order to avoid a database migration, we set default_auto_field to 'django.db.models.BigAutoField' for the VerifyEmail app. This is required, since Django defaults to django.db.models.AutoField since Django 3.2 (https://docs.djangoproject.com/en/3.2/ref/settings/#std-setting-DEFAULT_AUTO_FIELD).

By setting default_auto_field to the big auto field, the VerifyEmail app sticks with the existing big auto field in the database.

In order to avoid a database migration, we set default_auto_field to 'django.db.models.BigAutoField' for the VerifyEmail app. This is required,
since Django defaults to django.db.models.AutoField since Django 3.2 (https://docs.djangoproject.com/en/3.2/ref/settings/#std-setting-DEFAULT_AUTO_FIELD).

By setting default_auto_field to the big auto field, the VerifyEmail app sticks with the existing big auto field in the database.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant